package com.hhkj.api.train.controller;

import com.hhkj.api.common.session.holder.model.LoginStudent;
import com.hhkj.api.train.service.biz.ApiTrainBizService;
import com.ruoyi.framework.login.api.ApiLogin;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * ApiTrainPractiseController
 *
 * @author HHKJ-SERVER-ZJ
 * @since 2023/5/24 16:29
 */
@RestController
@RequestMapping("/api/train/practise")
public class ApiTrainPractiseController extends BaseController
{

    @Autowired
    private ApiTrainBizService apiTrainService;

    /**
     * 获取练习模式列表
     */
    @ApiLogin(LoginStudent.class)
    @GetMapping("/model")
    public TableDataInfo listPractiseModeCode()
    {
        return getDataTable(apiTrainService.listPractiseModeCode());
    }
}
